package cn.kgc.springboot.mybatis;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
@MapperScan("cn.kgc.springboot.mybatis.mapper")  //设置mapper接口所在的包 实现接口扫描  生成代理对象  托管到spring容器
public class SpringbootDay02MybatisApplication {

    public static void main(String[] args) {
        SpringApplication.run(SpringbootDay02MybatisApplication.class, args);
    }

}
